<!DOCTYPE html>
<html>
<head>
    <title>管理员列表</title>
    #parse("sys/header.html")
    <link href="${rc.contextPath}/statics/css/uploader.css" rel="stylesheet">
    <script src="${rc.contextPath}/statics/js/uploader.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input class="form-control" v-model="q.phone" @keyup.enter="query" placeholder="房东电话">
            </div>
            <div class="form-group col-sm-2">
                <input class="form-control" v-model="q.idCard" @keyup.enter="query" placeholder="身份证号">
            </div>
            <button class="layui-btn" id="searchSubmit" @click="query"><i class="layui-icon">&#xe615;</i>查 询</button>
            #if($shiro.hasPermission("sys:user:update"))
            <button class="layui-btn" @click="add" type="button"><i class="layui-icon">&#xe61f;</i> 新 增</button>
            #end
            <!--#if($shiro.hasPermission("sys:user:info"))-->
            <!--<button class="layui-btn" type="button" @click="update"><i class="layui-icon">&#xe642;</i>编辑-->
            <!--</button>-->
            <!--#end-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
        <div id="page"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <input type="hidden" v-model="user.createType" value="0"/>
            <div class="form-group">
                <div class="col-sm-2 control-label">姓名</div>
                <div class="col-sm-10">
                    <input :readonly="!canEdit" class="form-control" v-model="user.userName" placeholder="姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">联系电话</div>
                <div class="col-sm-10">
                    <input :readonly="!canEdit" class="form-control" v-model="user.phone" placeholder="手机号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">身份证号</div>
                    <div class="col-sm-10">
                        <input :readonly="!canEdit" type="text" class="form-control" v-model="user.idCard" placeholder="身份证号码"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">身份证(人像面)</div>
                    <div class="col-sm-10">
                        <div class="file-uploader" id="id-1"
                             data-title="身份证(人像面)"
                             data-drop="true">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">身份证(国徽面)</div>
                    <div class="col-sm-10">
                        <div class="file-uploader" id="id-2"
                             data-title="身份证(国徽面)"
                             data-drop="true">
                        </div>
                    </div>
                </div>

                <div class="form-group" style="margin-left: 30%;margin-top: 30px;">
                    #if($shiro.hasPermission("sys:user:update"))
                    <button v-if="canEdit" class="layui-btn" type="button" @click="saveOrUpdate">保存</button>
                    #end
                    <button class="layui-btn layui-btn-warm" type="button" @click="reload"
                            style="margin-left: 30px">返回
                    </button>
                </div>
        </form>
    </div>
</div>
<script src="${rc.contextPath}/statics/js/sys/userLandLord.js?_${date.systemTime}"></script>
</body>
</html>